﻿package cn.wangkai.peanut.system.dao.sequence;

import java.sql.SQLException;

import cn.wangkai.peanut.db.WKDbException;
import cn.wangkai.peanut.db.util.ManagerException;

public interface SequenceManager {

	/**
	 * 获取指定日期序号
	 * @param noid
	 * @param noyear
	 * @param nomonth
	 * @param noday
	 * @return
	 * @ throws SQLException, WKDbException, ManagerException, WKDbException 
	 */
	public String getNextSequence(String noid,int noyear,int nomonth,int noday)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	/**
	 * 获取本年度序列
	 * @param noid
	 * @return
	 * @ throws SQLException, WKDbException, ManagerException, WKDbException 
	 */
	public String getYearNextSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	/**
	 * 获取本月序列
	 * @param noid
	 * @return
	 * @ throws SQLException, WKDbException, ManagerException, WKDbException 
	 */
	public String getmonthNextSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	/**
	 * 获取今天序列
	 * @param noid
	 * @return
	 * @ throws SQLException, WKDbException, ManagerException, WKDbException 
	 */
	public String getToDayNextSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	/**
	 * 获取下一个序列
	 * @param noid
	 * @return
	 * @ throws SQLException, WKDbException, ManagerException, WKDbException 
	 */
	public String getNextSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	
	
	public long getNextLongSequence(String noid,int noyear,int nomonth,int noday)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public long getYearNextLongSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public long getmonthNextLongSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public long getToDayNextLongSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public long getNextLongSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	
	public int getNextIntSequence(String noid,int noyear,int nomonth,int noday)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public int getYearNextIntSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public int getmonthNextIntSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public int getToDayNextIntSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
	public int getNextIntSequence(String noid)  throws SQLException, WKDbException, ManagerException, WKDbException ;
}